<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<style type="text/css">
		body{
			background-image:url(static/img/bg.png);
		}
	</style>
</head>
<body>
	<div class="container" style="margin-top:100px">
	
		<form  action="login.jspx" id="myform" method="post" class="well"  style="width:300px;height:300px;margin:0px auto;">
			<%
			  String code=request.getParameter("code");
			   if(code!=null&&"10001".equals(code)){
		    %>
		    <div style="color:red">用户名或密码是错误的</div>
		     <%}%>
	
			<legend>Kaishengit-PMS</legend>
			<label>账号</label><input type="text" id="name" name="name" class="span3"><br/><span style="color:red" id="name-erro"></span>
			<label>密码</label><input type="password" id="pwd" name="password" class="span3"><br/><span style="color:red" id="pwd-erro"></span><br/>
			<button type="button"  id="btn"  class="btn btn-primary">进入系统</button>
		</form>
	</div>
</body>
<script type="text/javascript"  src="static/js/jquery.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#name").keydown(function(){
			$("#name-erro").html("");
		});
		$("#pwd").keydown(function(){
			$("#pwd-erro").html("");
		});
	
	$("#btn").click(function(){
		var name=$("#name").val();
		if(name.trim()==""){
			$("#name-erro").html("请输入用户名");
			return;
		}
	});
	$("#btn").click(function(){
		var pwd=$("#pwd").val();
		if(pwd.trim()==""){
			$("#pwd-erro").html("请输入密码");
			return;
		}
		$("#myform").submit();
	});
});
</script>
</html>



